package com.whz.generic.memqueue;

import lombok.experimental.UtilityClass;

/**
 * @author whz
 */
@UtilityClass
public class MemeQueueProductorHolder {
    private static MessageSender messageSender;

    public static MessageSender currentSender() {
        return messageSender;
    }

    public static void hold(MessageSender sender) {
        messageSender = sender;
    }
}
